
errSE1  dw  "Error suma enteros (Underflow)" ;30
errSE2  dw  "Error suma enteros (Overflow)"  ;29

sumaE proc near
    push bp
    mov bp,sp
    push ax
    
    mov ax, [bp+4]
    add [bp+6],ax
    jno sumeok
    jns errseO
    push offset errSE2
    push 29
    call writeSTR
    jmp fin

errseO:
    push offset errSE1
    push 30
    call writeSTR
    jmp fin
sumeok:
    ;fin suma
    pop ax
    pop bp
    ret 2
sumaE endp
